package
{
	import CExtends.extendBase;
	
	import UIFree.ObjectEvent;
	
	import flash.geom.Rectangle;

	public class c_admin extends extendBase {
		private var _dialog	: Object;
		private var _text	: Object;
		public function c_admin() {
			super();
		}
		
		override public function init(a_app: Object, extendsLayer: Object): void {
			super.init(a_app, extendsLayer);
			createDialog();
		}
		
		private function createDialog(): void {
			_dialog = new _app.classes.dialog(_app.layers[4], 0, 0, 300, 200, false);
			_dialog.title.text = 'trace';
			var inner: Rectangle = _dialog.getInner();
			_text = new _app.classes.input(_dialog, inner.x, inner.y, inner.width, inner.height, 'minput');
			_app.addEventListener('TRACE', doTrace);
			_dialog.show();
		}
		
		protected function doTrace(e: ObjectEvent): void {
			_text.appendText(e.object as String);
		}
	}
}